package com.caipin.domain.camera;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2020-08-05 16:21
 * @Description: TODO
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class CourseInfo {

    /**
     * grade : 年级
     * week : 周几
     * classes : [{"start":{"hour":3,"minute":3},"end":{"hour":3,"minute":3},"classId":"语文","tencher":"上课教师","grade":"上课班级"}]
     */

    private String grade;
    private String week;
    private List<ClassesBean> classes;

    @NoArgsConstructor
    @Data
    @Accessors(chain = true)
    public static class ClassesBean {
        /**
         * start : {"hour":3,"minute":3}
         * end : {"hour":3,"minute":3}
         * classId : 语文
         * tencher : 上课教师
         * classroomId : 上课教室
         */

        private StartBean start;
        private EndBean end;
        private String classId;
        private String tencher;
        private String classroomId;

        @NoArgsConstructor
        @Data
        @Accessors(chain = true)
        public static class StartBean {
            /**
             * hour : 3
             * minute : 3
             */

            private int hour;
            private int minute;
        }

        @NoArgsConstructor
        @Data
        @Accessors(chain = true)
        public static class EndBean {
            /**
             * hour : 3
             * minute : 3
             */

            private int hour;
            private int minute;
        }
    }
}
